import AddressIndex  from '@/components/address/index.vue';
import AddressAdd  from '@/components/address/add.vue';
import AddressEdit  from '@/components/address/edit.vue';


const list =  [
    {
        path: 'index',
        name: 'AddressIndex',
        component: AddressIndex,
        meta: {IsLogin: true}
    },
    {
        path: 'add',
        name: 'AddressAdd',
        component: AddressAdd,
        meta: {IsLogin: true}
    },
    {
        path: 'edit',
        name: 'AddressEdit',
        component: AddressEdit,
        meta: {IsLogin: true}
    }
]

//父路由
const layout = {
    template: `<router-view></router-view>`
}

export default [{
    name: 'address',
    path: '/address',
    component: layout,
    children: list
}]